 window.onload = function(){
 // url网站域名
 var url="http://hengzhi.ayvvv.com";

// 导航栏开始  链接未填写（应属于头部但原因未知无法调用拆开来写）
    $.ajax({          
            url:url + "/api/common/home", 
            dataType:"json",
            type:"get", 
            async:true,
            success:function(data){
                // 导航栏开始
                var v=data.data.category;
                for (var i = 0; i < v.length; i++) {
                    $('#web_navigation').append('<li><a href="javascript:;" title="'+v[i].cate_name+ '">'+v[i].cate_name+ '</a></li>');
                }
                $('#web_navigation').append('<li><a href="javascript:;" title="">顶起样式</a></li>');
                $('#web_navigation').append('<li><a href="javascript:;" title="">顶起样式</a></li>');
                // 导航栏结束
            },      
            error:function(){}
            });
// 导航栏结束

 // 三级分类信息循环开始  链接未填写
         function RSECGlobal() {
        };

    $.ajax({          
            url:url + "/api/store/product/category/lst", 
            dataType:"json",
            type:"get", 
            async:true,
            success:function(sort){
                for (var i = 0; i < sort.data.length; i++) {
                    shop_html=`<div class="class" id="`+sort.data[i].cate_name+`">
                    <h3><a href="javascript:;"> `+sort.data[i].cate_name + `</a></h3>
                    </div>`;
                $('#shop_product').append(shop_html);
                    for (var j = 0; j < sort.data[i].children.length; j++) {
                        $('#'+sort.data[i].cate_name ).append(`<dl style=""><dt>
                            <a title="" target="_blank" href="javascript:;" class="list_icon_1001">
                                `+sort.data[i].children[j].cate_name + `
                            </a>
                        </dt>
                        <dd id="`+sort.data[i].children[j].cate_name +`">    

                            
                        </dd>
                        <div class="clear"></div>
                    </dl>`);
                        for (var l = 0; l < sort.data[i].children[j].children.length; l++) {
                                $('#'+sort.data[i].children[j].cate_name ).append(`<em>
                                <a title="`+sort.data[i].children[j].children[l].cate_name +`" target="_blank" href="list.html?cate_id=`+sort.data[i].children[j].children[l].store_category_id +`">
                                    `+sort.data[i].children[j].children[l].cate_name +`
                                </a>
                            </em>`);
                            }
                          
                    }

                }

            },      
            error:function(){}
            });

 // 三级分类信息循环结束

};